package com.DHH.Config;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;

/**
 * Created by 汪玉东 on 2017/9/30.
 */
@Component("dhhConfiginit")
public class InitConfig implements        ApplicationListener<ContextRefreshedEvent> {
//    @PostConstruct
//    public  void  dhhConfigInit(){
//        ApiConstant.init();
//    }

    @Override
    public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
        ApiConstant.init();
    }
}
